<!--
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * @Date: 2020-09-03 10:18:11
 * @LastEditors: Sam
 * @LastEditTime: 2020-09-05 12:16:40
-->
{include file="public/frame_head"}
<div class="row" style="width: 100%;margin-top: 50px; text-align: center;">
<button type="button" class="btn btn-w-m btn-primary do"  data-url="{:Url('system.clear/refresh_cache')}">清除缓存</button>
<button type="button" class="btn btn-w-m btn-primary do"  data-url="{:Url('system.clear/delete_log')}">清除日志</button>
</div>
<script>
     
    $('button').on('click',function(){
        window.t = $(this);
        var _this = $(this),url =_this.data('url');
        layer.confirm('确认操作么?',{icon:3,title:false},function(){
            $.get(url,function(res){
             
                if(res.code == 200){
                    layer.msg(res.msg);
                }else{
                    layer.alert(res.msg);
                }
            },'JSON')
        })
    })
</script>

